package cn.xiaopengstack.domain.trade.service;

import cn.xiaopengstack.domain.trade.model.entity.TradePaySettlementEntity;
import cn.xiaopengstack.domain.trade.model.entity.TradePaySuccessEntity;

import java.util.Map;

/**
 * @author jiangyangang
 */
public interface ITradeSettlementOrderService {

    /**
     * 拼团结算
     * @param tradePaySuccessEntity
     * @return
     */
    TradePaySettlementEntity settlementOrder(TradePaySuccessEntity tradePaySuccessEntity) throws Exception;

    /**
     * 执行全部的结算通知
     * 用来主动触发拼团结算的通知
     * @return
     */
    Map<String, Integer> executeSettlementNotifyJob();

    /**
     * 执行全部的结算通知
     * 用来触发指定的拼团结算订单的通知
     * @return
     */
    Map<String, Integer> executeSettlementNotifyJob(String teamId);


}
